import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import cv2

matplotlib.rcParams['figure.figsize'] = [16, 12]

def compare_images(dst, src, *args, **kwargs):
    f, axes = plt.subplots(1, 2, sharex=True, sharey=True)
    axes[0].imshow(dst, *args, **kwargs)
    axes[1].imshow(src, *args, **kwargs)

def compare_gray_images(dst, src):
    compare_images(dst, src, cmap='gray', vmin=0, vmax=255)

lena = cv2.imread('../images/lena.jpg')
